import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  index: true,
  indexLabel: i18n.t('publics.serial'),
  indexWidth: i18n.t('language') === 'language' ? 140 : 50,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  column: [
    {
      label: i18n.t('shop.announcementTitle'),
      prop: 'title',
      searchLabelWidth: i18n.t('language') === 'language' ? 120 : 80,
      search: true
    },
    {
      label: i18n.t('sysManagement.type'),
      prop: 'type',
      search: true,
      slot: true,
      type: 'select',
      dicData: [
        {
          label: i18n.t('shop.platformNotice'),
          value: 1
        }, {
          label: i18n.t('shop.mallNotice'),
          value: 2
        }
      ]
    },
    {
      label: i18n.t('brand.status'),
      prop: 'status',
      search: true,
      slot: true,
      type: 'select',
      dicData: [
        {
          label: i18n.t('publics.cancel'),
          value: 0
        }, {
          label: i18n.t('publics.publicar'),
          value: 1
        }
      ]
    },
    {
      label: i18n.t('distributionMsg.whetherTop'),
      prop: 'isTop',
      searchLabelWidth: i18n.t('language') === 'language' ? 160 : 80,
      search: true,
      slot: true,
      type: 'select',
      dicData: [
        {
          label: i18n.t('publics.no'),
          value: 0
        }, {
          label: i18n.t('publics.yes'),
          value: 1
        }
      ]
    }
  ]
}
